package bishi.haikang;


public class demo2 {
    public ListNode mergeNode (ListNode head) {
        // write code here
        ListNode ret = new ListNode(0);
        ListNode cur = ret;
        while(head != null) {
            int sum = head.val * head.next.val;
            ListNode temp = new ListNode(sum);
            cur.next = temp;
            cur = cur.next;
            head = head.next.next;
        }
        return ret.next;

    }
}
